package net.lzzy.entity;

        import lombok.AllArgsConstructor;
        import lombok.Builder;
        import lombok.Data;
        import lombok.NoArgsConstructor;

        import javax.persistence.*;

@Entity(name = "t_comment")
//@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class Comment {
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public Integer getArticleId() {
        return articleId;
    }

    public void setArticleId(Integer articleId) {
        this.articleId = articleId;
    }

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer id;

//    @Column(name = "content")
    @Column(columnDefinition = "longtext",nullable = false)
    private String content;

//    @Column(name = "author")
    @Column(columnDefinition = "longtext")
    private String author;

    @Column(name = "aId")
//    private Integer aId;
    private Integer articleId;
}
